package com.atguigu.elastic.bean;

import io.searchbox.annotations.JestId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author : leimingchao
 * @date Date : 2021年10月27日 23:44
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Builder
public class Article implements Serializable {

    private static final long serialVersionUID = 7077811368598660670L;

    //标识这是一个主键
    @JestId
    private Integer id;

    private String author;

    private String title;

    private String content;
}
